package com.fzb.forum4j.util;

import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

public class MyTimer {

	private static Timer timer;
	public static void main(String[] args) {
		timer=new Timer();
		TimerTask t=new TimerTask() {
			
			@Override
			public void run() {
				System.out.println("任务");
			}
		};
		timer.schedule(t, new Date(), 1000);
	}
}
